<?php $this->_extends('_layouts/blank_layout'); ?>

<?php $this->_block('title'); ?> - 规则设置<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started" alt="规则设置">
	  <table>
		<tr><th width="5">　</th><th width="70">主机组名</th><th>描述</th><th width="70">创建时间</th><th width="70">组规则数</th></tr>
		<?php foreach ($group as $s): ?>
		<tr class="<?php if(($countno+1)/2==ceil(($countno+1)/2)){echo 'tw';} ?>"><td align="center"><?php echo $countno++;?></td><td><?php echo $s->groupname;?></td><td><?php echo $s->description;?></td><td><?php echo $s->datetime;?></td><td width="70" align="center"><?php if(isset($group_config[$s->id])){ ?><a href="<?php echo url('default::default/framework', array('id' => $s->id(),'control' => 'rulesetting','acts' => 'indexgroup|ruleaddform')); ?>"><?php if(isset($group_config[$s->id]))echo $group_config[$s->id].'条';else echo '-';  ?></a><?php } ?></td></tr>
		<?php endforeach; ?>
		<tr>
      <td colspan="7"><center>
       共有 <font color="Red"><?php echo $pager['record_count'];?></font> 条记录,分为 <font color="Red"><?php echo $pager['page_count'];?></font> 页显示,当前第 <font color="Red"><?php echo $pager['current'];?></font>页,每页 <font color="Red"><?php echo $pager['page_size'];?></font> 条<?php echo $pagestr; ?></center>
    </td>
    </tr>
		</table>
	</div>

<?php $this->_endblock('contents'); ?>